package Workflow;

import java.util.concurrent.BlockingQueue;

import javax.swing.SwingWorker;

import Model.Candidate;
import Model.Report;

public class ProcessTask extends SwingWorker<BlockingQueue<Candidate>, Candidate> {
	BlockingQueue<Candidate> outQueue;
	private Candidate candidate;
	
	public ProcessTask (BlockingQueue<Candidate> outQ){
		outQueue = outQ;
		/*
		 * TODO SWING ablak
		 */
	}
	

	public void addCandidate(Candidate c){
		try {
			outQueue.put(c);
		} catch (InterruptedException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}

	@Override
	protected BlockingQueue<Candidate> doInBackground() throws Exception {
		addCandidate(new Candidate());
		return null;
	}

}
